<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			body{
				height: 1000px;
			}
			.a{
				width: 100px;
				height: 100px;
				background: #666666;
			    position: absolute;
				right: 0;
				bottom: 0;
			}
			.b{
				width: 50px;
				height: 50px;
				background:purple;
				position: fixed;
				right: 0;
				bottom: 0;
			}
		</style>
	</head>
	<body>
		<div class="a">111</div>
		<div class="b">222</div>
	</body>
</html>
